/**
 * Author: w景洋.
 * Time: 2016/8/23 0023
 */
var ngbapp = angular.module('ngbapp', [
    'ui.router',
    'service.filter',
    'directive',
    'entrance',
    'expert',
    'mall',
    'usercenter',
]);

ngbapp.run(
    ['$rootScope', '$state', '$stateParams',
        function ($rootScope, $state, $stateParams) {
            $rootScope.$state = $state;
            $rootScope.$stateParams = $stateParams;
        }
    ]
)

ngbapp.config(
    ['$stateProvider', '$urlRouterProvider', '$locationProvider',
        function ($stateProvider, $urlRouterProvider, $locationProvider) {
            $urlRouterProvider
                .otherwise('/');
            $locationProvider.html5Mode(html5mode);
        }
    ]
)
;